﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ESSManageService.IServices;
using ESSManageService.IServices.IDBServices;
using ESSManageService.Model.DBModels.Info;

namespace ESSManageService.Services.DBServices
{
    public class RoleServices : SqlSugarRepository<Role>, IRoleServices
    {
        public List<Role> GetAllRoles() 
        {
            var AllRoles = Db.Queryable<Role>().ToList();
            return AllRoles;
        }

        public Task<string> GetRoleNameByRid(int rid)
        {
            throw new NotImplementedException();
        }

        public Task<Role> SaveRole(string roleName)
        {
            throw new NotImplementedException();
        }
    }
}
